const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  // 应用的基础路径 "/"是默认app部署在域名根路径上,但如果部署后的域名是"https://www.zhien.com/admin/"，则BASE_URL="/admin/"
  publicPath: process.env.BASE_URL || '/',
  css: {
    loaderOptions: {
      scss: {
        additionalData: `
          @import '~@/styles/variable.scss';
          @import '~@/styles/mixins.scss';
        `,
      },
    },
  },
})
